package com.app.asktom.component;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class RegistrationHelper extends SQLiteOpenHelper {
	private static final String DATABASE_NAME="lunchlist.db";
	private static final int SCHEMA_VERSION=3;
	
//	String sqlDataStore = "create table if not exists " +
//	        TABLE_NAME_INFOTABLE + " ("+ BaseColumns._ID + " integer primary key autoincrement,"
//	                + COLUMN_NAME_SITE + "text not null,"
//	                + COLUMN_NAME_ADDRESS + "text not null,"
//	                + COLUMN_NAME_USERNAME + "text not null,"
//	                + COLUMN_NAME_PASSWORD + "text not null)";	
	
//	   Database creation sql statement
//	  private static final String DATABASE_CREATE = "create table "
//	      + TABLE_COMMENTS + "(" + COLUMN_ID
//	      + " integer primary key autoincrement, " + COLUMN_COMMENT
//	      + " text not null);";	
	
	public RegistrationHelper(Context context) {
		super(context, DATABASE_NAME, null, SCHEMA_VERSION);
	}


	  
	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("CREATE TABLE registration (_id INTEGER PRIMARY KEY AUTOINCREMENT, key TEXT, val TEXT);");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
		
	}
	
}
